package com.fzy.designmodel.single;


/**
 * 懒汉(线程安全)
 */
public class Test02 {

    private static Test02 test02;

    public static synchronized Test02 getTest(){
        if(test02 == null){
            test02 = new Test02();
        }
        return test02;
    }
}
